﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConTask
{
    class Program
    {
        static void Main(string[] args)
        {
            Task parant = new Task(() =>
            {
                new Task(() => Console.WriteLine("Hello")).Start();
                new Task(() => Console.WriteLine("Tom")).Start();
                new Task(() => Console.WriteLine("World")).Start();
                new Task(() => Console.WriteLine("!")).Start();
            });
            parant.Start();
            Console.ReadKey(); 
        }
    }
}
